package grammar.parser;

import execution.Executable;
import grammar.parser.stmt.Stmt;
import word.parser.WordElement;

public abstract class BlockItem extends GrammarParser implements Executable {

    public static BlockItem buildBlockItem() {
        if (getAnalyzingWord().getType() == WordElement.WordType.INTTK ||
                getAnalyzingWord().getType() == WordElement.WordType.CONSTTK) {
            return Decls.buildDecls();
        } else {
            return Stmt.buildStmt();
        }
    }
}
